Skip to content

examples: add Synap memory tools example#3407

Closed
visy-ani wants to merge 1 commit into
openai:mainfrom
visy-ani:add-synap-memory-example
Closed

examples: add Synap memory tools example#3407
visy-ani wants to merge 1 commit into
openai:mainfrom
visy-ani:add-synap-memory-example

Conversation

@visy-ani
Copy link
Copy Markdown

Summary

Adds examples/tools/synap_memory.py showing how to wire an OpenAI Agent up with persistent, cross-session memory via Synap.

Uses two FunctionTool instances built from synap-openai-agents:

  • search_memory — semantic search over the user's stored memories
  • store_memory — persist explicit facts the user mentions

The package is published on PyPI as synap-openai-agents. Source code lives in our open source repo: https://github.com/maximem-ai/maximem_synap_sdk/tree/main/packages/integrations/synap-openai-agents

Test plan

  • Ran python examples/tools/synap_memory.py with SYNAP_API_KEY set
  • Verified the agent stores and retrieves memory across turns

Copilot AI review requested due to automatic review settings May 14, 2026 10:10
@seratch
Copy link
Copy Markdown
Member

seratch commented May 14, 2026

Thanks for sharing this. While we won't add this example in this repo, please feel free to share it in your own repo.

@seratch seratch closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants